package cn.itsource.system.mapper;

import cn.itsource.system.domain.Role;
import cn.itsource.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2024-05-07
 */
public interface RoleMapper extends BaseMapper<Role> {

    void addRoleMenu(Role role);

    void addRolePermissions(Role role);

    void delRoleMenuId(Long id);

    void delRolePermissionsId(Long id);

    List<Long> findMenuRoleId(Long id);

    List<Long> findPermissionsRoleId(Long id);
}
